﻿// 1st arg - name of the controller
// 2nd arg - Array:
//  - biz logic - anoymous function
//  - dependicies
myApp.controller('MoviesController', ['$scope', 'MoviesService', function ($scope, MoviesService) {
    // greeting
    $scope.greeting = "marahaba";
    // list of movies
    $scope.movieList = MoviesService.movies;

    // list of posts
    $scope.articleList = MoviesService.posts;

}]);